package com.zsrt.javaweb.student.dao.impl;

import org.springframework.stereotype.Repository;

import com.zsrt.javaweb.student.dao.StudentDao;
import com.zsrt.javaweb.student.entity.Student;

/**
 * 在配置文件中配置的只能是类 bean  不能是接口
 * @author zsrt
 *
 */



@Repository
public class StudentDaoImpl  implements StudentDao{

	
	public StudentDaoImpl(){
		
		System.out.println("调用StudentDaoImpl类的构造方法....");
	}
	
	@Override
	public int add(Student student) {
		System.out.println("添加学生成功....");
		return 0;
	}

}
